// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import HomeView from '../components/HomeView.vue';
import DataDashboard from '../components/DataDashboard.vue';
import CameraView from '../components/CameraView.vue';

const routes = [
    {
        path: '/dashboard',
        name: 'Dashboard',
        component: DataDashboard
    },
    {
        path: '/camera',
        name: 'Camera',
        component: CameraView
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
